<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
    <title>Think PHP 测试应用</title>
    <meta charset="utf-8" />
	<link rel="stylesheet" type="text/css" href="/Public/Css/style.css" />
</head>
<body>
	<h1>内容列表</h1>
	<p>内容总数：<?php echo ($count); ?></p>
	<p><a href="<?php echo U("Index/clear") ?>">清空内容</a></p>
	<?php if(is_array($content)): foreach($content as $key=>$vo): ?><p><?php echo ($vo["name"]); ?>
	<?php echo ($vo["content"]); ?></p><?php endforeach; endif; ?>
	<p><?php echo ($error); ?></p>
	<form method="POST" action="<?php echo U("Index/insert")?>">
		<p>
		<label for="Name">Name</label><input type="text" name="name" id="Name" />
		</p><p>
		<textarea name="content" rows="8" cols="40"></textarea>	
		</p>
		<p><input type="submit" name="submit" value="submit" /> </p>
	</form>
	<img src='__APP__/Index/verify' />	
</body>
</html>